<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>出租流水</title>
<script type="text/javascript" src="../js/calendar.js"></script>
<script type="text/javascript" language="javascript" src="<%=request.getContextPath()%>/js/calendar/WdatePicker.js"></script>
</head>
<body>
	<div class="register-container container">
		<div class="row">

			<div class="register span6">
				<form id="form" name="form"
					action="${pageContext.request.contextPath}/rent/rent!list.action"
					method="post">
					<table align="center">
						<tr>
							<td colspan="2">租客帐号：<input name="rentFlow.userId" size="7"
								class="lable" /></td>
						</tr>
						<tr>
							<td>租房时间：<input name="rentFlow.rentDate"
								onclick="WdatePicker()" size="7" class="lable" />
							</td>
							<td>退房时间：<input name="rentFlow.quitDate"
								onclick="WdatePicker()" size="7" class="lable" />
							</td>
						</tr>
						<tr>
							<td colspan="2"><input name="submit" type="submit"
								value="查询" /> <input type="hidden" name="rentFlow.curentPage"
								id="curentPage" value="${page.curentPage}"></td>
						</tr>
					</table>
				</form>
				<table align="center" border="1">
					<tr>
						<td>流水ID</td>
						<td>房间ID</td>
						<td>租客ID</td>
						<td>身份证</td>
						<td>出租金额</td>
						<td>租房时间</td>
						<td>退房时间</td>

						<s:iterator value="page.PageList" id="bean">
							<tr>
								<td>${bean.rentFlowId }</td>
								<td>${bean.roomId }</td>
								<td>${bean.userId }</td>
								<td>${bean.cardId }</td>
								<td>${bean.rentPrice }</td>
								<td>${bean.rentDate }</td>
								<td>${bean.quitDate}</td>
							</tr>
						</s:iterator>
					<tr>
						<td colspan="7"><%@ include file="/common/page.jsp"%></td>
					</tr>
				</table>

			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
	function queryForm() {
		var form = document.getElementById("form");
		document.getElementById("curentPage").value = 0;
		form.submit();
	}
</script>
</html>
